package wanda.util

import scala.collection.mutable

object Checker {

  def get[V](v: Option[V]): V = {

    v match {
      case None =>
        println("错误：值为空")
        System.exit(1)
        v.get
      case _ => v.get
    }
  }

  def showMap(map: mutable.HashMap[String, String]): Unit ={

    println("=============初始化参数==============")
    map.foreach(tuple=>println(tuple._1+" => "+tuple._2))
  }
}
